#!/bin/bash

USER_ID=53d262d106ed405b9e3bd6eb285265d3
SECRET=PJ4TMSLKJ54UWTDXJNMVS6JUJRJUC4TW
OS_TOKEN=gAAAAABmGkNAHLAwo7oRZ9IYmBWxqgVzazYhqKVohXL6mRQnem67L_s1lTV4KruSjCKHlAHQRT9RpZ5hGDjhOgZZ31ypYkL7Gno9ICbGxvyCsOPHRgNwgNsOYKz86z2GlmvNwp0aw1Kov5fb6bGyG44iMLuK9x6HY9ZTFPPkJH6UBjCtyQ7i0WQWIigxPdpg0kwv2RtD3u4b

curl -i \
  -H "Content-Type: application/json" \
  -H "X-Auth-Token: $OS_TOKEN" \
  -d '
{
    "credential": {
        "blob": "'$SECRET'",
        "type": "totp",
        "user_id": "'$USER_ID'"
    }
}' \
  http://192.168.31.240:5000/v3/credentials ; echo
